#include "widget.h"
#include "ui_widget.h"
#include<QPushButton>
Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    //等待光标
    ui->setupUi(this);
    QPushButton* button1 = new QPushButton(this);
    button1->resize(100,50);
    button1->move(300,400);
    button1->setCursor(Qt::WaitCursor);
    //donk自定义光标
    QPushButton* button2 = new QPushButton(this);
    button2->resize(100,50);
    button2->move(300,200);
    QPixmap donk(":/donk.jpg");
 QPixmap donk1=   donk.scaled(50,50);
    //将图片形成光标
    QCursor qr(donk1,25,25);
    button2->setCursor(qr);



}

Widget::~Widget()
{
    delete ui;
}

